<?php
$con = mysql_connect("localhost","root","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
  
mysql_select_db('todo'); 
?>

<html>
<head>
	<title>TO DO List</title>
		<link href="css/bootstrap.css" rel="stylesheet">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link href="css/bootstrap-responsive.css" rel="stylesheet">
<div class="page-header">
  <h1>Remindernya Mahasiswa ITS <small>Kampus Perjuangan</small></h1>
</div>
</head>
<body>
<p align="center" class="style1">Reminder</p>
  <div align="center">
  <table width="1106" border="1">
    <tr class="success">
      <th width="322" scope="col">Activity</th>
      <th width="547" scope="col">Deadline</th>
      <th width="215" scope="col">Type </th>
    </tr>
	<?php
		$pilih = mysql_query("SELECT * FROM list");
			while($isi=mysql_fetch_array($pilih))
			{
		
    echo "<tr>".
      "<td>".$isi['activity']."</td>".
      "<td>".$isi['deadline']."</td>".
      "<td>".$isi['type']."</td>".
    "</tr>";
	?>
	<?php
		}
	?>
  </table>
<ul class="nav nav-pills">
  <li class="disabled"><a href="awal.html">Home</a></li>
</ul>
</div>
</body>
</html>